package com.market.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author xd
 * @since 2024-03-26
 */
@Data
@TableName("sub_comment")
public class SubComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 二级评论内容
     */
    private String content;

    /**
     * 发表二级评论的用户id
     */
    private Integer userId;

    /**
     * 发表时间
     */
    private String time;

    /**
     * 一级评论ID，即父级评论的id
     */
    private Integer parentCommentId;

    /**
     * 0审核中，1审核已通过，-1未通过
     */
    private Integer state;

    @TableField(value = "nickName",exist = false)
    private String nickName;

    @TableField(value = "thingName",exist = false)
    private String thingName;

    @TableField(value = "commentContent",exist = false)
    private String commentContent;

}
